#pragma once

#include "global.h"
#include "Event.h"

class Listenable
{
protected:
	void triggerAll(Event& evt);
	vector<function<void(Event&)>> listeners;
public:
	void registerListener(function<void(Event&)> const listener);
	Listenable() {};
	~Listenable() {};
};

